2 01 2 Necklaces , Convolutions , and X +
نویسندگان
چکیده
We give subquadratic algorithms that, given two necklaces each with n beads at arbitrary positions, compute the optimal rotation of the necklaces to best align the beads. Here alignment is measured according to the lp norm of the vector of distances between pairs of beads from opposite necklaces in the best perfect matching. We show surprisingly different results for p = 1, p even, and p = ∞. For p even, we reduce the problem to standard convolution, while for p = ∞ and p = 1, we reduce the problem to (min,+) convolution and (median,+) convolution. Then we solve the latter two convolution problems in subquadratic time, which are interesting results in their own right. These results shed some light on the classic sorting X + Y problem, because the convolutions can be viewed as computing order statistics on the antidiagonals of the X + Y matrix. All of our algorithms run in o(n) time, whereas the obvious algorithms for these problems run in Θ(n) time. Faculty of Computer Science, University of New Brunswick, Fredericton, New Brunswick, Canada, [email protected]. Supported by NSERC. School of Computer Science, University of Waterloo, Waterloo, Ontario, Canada, [email protected]. Supported by NSERC. Computer Science and Artificial Intelligence Laboratory, Massachusetts Institute of Technology, Cambridge, MA, USA, [email protected]. Supported in part by NSF grants CCF-0430849 and OISE-0334653 and by an Alfred P. Sloan Fellowship. Computer Science Department, University of Illinois, Urbana-Champaign, IL, USA, [email protected]. Departament de Matemàtica Aplicada II, Universitat Politècnica de Catalunya, Barcelona, Spain, [email protected]. Supported in part by projects MICINN MTM2009-07242, Gen. Cat. DGR 2009SGR1040, and ESF EUROCORES programme EuroGIGA, CRP ComPoSe: MICINN Project EUI-EURC-2011-4306, for Spain. Department of Computer and Information Science, Polytechnic University, Brooklyn, NY, USA, http://john.poly.edu. Supported in part by NSF grants CCF-0430849 and OISE-0334653 and by an Alfred P. Sloan Fellowship. Directeur de Recherches du FRS–FNRS, Départment d’Informatique, Université Libre de Bruxelles, Brussels, Belgium, [email protected]. Chercheur qualifié du FNRS, Départment d’Informatique, Université Libre de Bruxelles, Brussels, Belgium, [email protected]. College of Science and Engineering, American University of Armenia, Yerevan, Armenia, [email protected].
منابع مشابه
Necklaces , Convolutions , and X +
We give subquadratic algorithms that, given two necklaces each with n beads at arbitrary positions, compute the optimal rotation of the necklaces to best align the beads. Here alignment is measured according to the `p norm of the vector of distances between pairs of beads from opposite necklaces in the best perfect matching. We show surprisingly different results for p = 1, p = 2, and p =∞. For...
متن کاملA pr 2 01 5 Finite free convolutions of polynomials ∗
We study three convolutions of polynomials that are inspired by free probability. We define these to be the expected characteristic polynomials of certain random matrices. The symmetric additive and multiplicative convolutions have been studied for a century. The asymmetric additive convolution, and the connection of all of them with random matrices, appears new. We prove that these convolution...
متن کاملFast Algorithms to Generate Necklaces, Unlabeled Necklaces, and Irreducible Polynomials over GF(2)
Many applications call for exhaustive lists of strings subject to various constraints, such as inequivalence under group actions. A k-ary necklace is an Ž . equivalence class of k-ary strings under rotation the cyclic group . A k-ary unlabeled necklace is an equivalence class of k-ary strings under rotation and permutation of alphabet symbols. We present new, fast, simple, recursive algoŽ . rit...
متن کاملar X iv : f un ct - a n / 94 10 00 1 v 2 5 F eb 2 00 4 RELATIVE CONVOLUTIONS . I PROPERTIES AND APPLICATIONS
To study operator algebras with symmetries in a wide sense we introduce a notion of relative convolution operators induced by a Lie algebra. Relative convolutions recover many important classes of operators, which have been already studied (operators of multiplication, usual group convolutions, two-sided convolution etc.) and their different combinations. Basic properties of relative convolutio...
متن کاملOn cardinalities of k-abelian equivalence classes
Two words u and v are k-abelian equivalent if for each word x of length at most k, x occurs equally many times as a factor in both u and v. The notion of k-abelian equivalence is an intermediate notion between the abelian equivalence and the equality of words. In this paper, we study the equivalence classes induced by the k-abelian equivalence, mainly focusing on the cardinalities of the classe...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2012